#pragma once
#include "Polygon.h"
using std::vector;

namespace poly
{
	typedef vector<Polygon> PolygonList;
	// ConvexSet, creates a list of convex polygons from a simple concave polygon
	class ConvexSet
	{
	public:
		ConvexSet();
		ConvexSet( Polygon const & P );
		void initialize( Polygon P );

		PolygonList polygonList() const;

	private:
		Polygon clipConvex( Polygon & P );
		PolygonList m_polygons;
	};
}
